package com.sky.utils;

public class ThreadLocalUtils {
    private static final ThreadLocal<Long> THREAD_LOCAL_LONG = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        THREAD_LOCAL_LONG.set(id);
    }

    public static Long getCurrentId() {
        return THREAD_LOCAL_LONG.get();
    }

    public static void removeCurrentId() {
        THREAD_LOCAL_LONG.remove();
    }
}
